import ApiEnv from '@/api-env';

const domain = {
	dev: '', //'172.41.4.118:8685',
	prod: '', //'ruralface.fuminrt.com',
} [ApiEnv];

const webViewUrl = {
	dev: `http://${domain}`,
	prod: `https://${domain}`,
} [ApiEnv];

const baseUrl = {
	mock: 'http://172.41.30.33:7300/mock/5ef2b952aec34c001f9ed9b1/uni-app-demo',
	dev: `${webViewUrl}/api`,
	pre: '/',
	prod: `${webViewUrl}/api`,
} [ApiEnv];

const Config = {
	baseUrl,
	webViewUrl,
	domain,
};

export default Config;
